var OPENWINDOW_PARAS="location=no,menubar=no,titlebar=no,scrollbars=yes,toolbar=no,resizable=yes,left="+(window.screen.width-1024)/2 +",top="+(window.screen.height - 768)/ 2+",height="+	(768-30)+",width="+(1024-10);
var OPENDIALOG="dialogWidth="+(window.screen.width-6)+"px;dialogHeight="+	(window.screen.height-4)+"px;center=yes;help=no;scroll=no";

function openApprove(strWorkID,strFlowID,strFlowInstanceID)
{
    var strURL = "OpenApprove.aspx?Type=Approve"
                 +"&Work_ID="+strWorkID
                 +"&Flow_ID="+strFlowID    	
                 +"&Flow_Instance_ID="+strFlowInstanceID;
                     	
	//window.open(strURL,"POPUWINDOW",OPENWINDOW_PARAS,false).focus();			
	showModalDialog(strURL,null,OPENDIALOG);		
	window.location = window.location;	
}

function traceApply(strFlowID,strFlowInstanceID,strWorkHeaderID)
{
    var strURL = "OpenApprove.aspx?Type=TraceApply"
                 +"&Work_Header_ID="+strWorkHeaderID
                 +"&Flow_ID="+strFlowID    	
                 +"&Flow_Instance_ID="+strFlowInstanceID;    	                 
                     	
	//window.open(strURL,"POPUWINDOW",OPENWINDOW_PARAS,false).focus();
	showModalDialog(strURL,null,OPENDIALOG);		
	window.location = window.location;			
}


function traceApprove(strFlowID,strFlowInstanceID,strWorkID)
{
    var strURL = "OpenApprove.aspx?Type=TraceApprove"
                 +"&Work_ID="+strWorkID
                 +"&Flow_ID="+strFlowID    	
                 +"&Flow_Instance_ID="+strFlowInstanceID;    	                 
                     	
	//window.open(strURL,"POPUWINDOW",OPENWINDOW_PARAS,false).focus();		
	showModalDialog(strURL,null,OPENDIALOG);		
	window.location = window.location;	
}